package com.sms.jiujia.ui.setting;

import com.sms.jiujia.model.City;

import java.util.ArrayList;
import java.util.List;
import java.util.Timer;

/**
 * @Author songmingsong
 * @Date 2023/4/28
 **/
public class Constant {
    /**
     * 字体
     */
    public static final String FONT_NAME = "KaiTi";
    /**
     * 字体大小
     */
    public static final Integer FONT_SIZE = 60;

    /**
     * 城市,默认为成都
     */
    public static Setting setting = null;

    /**
     * 城市,默认为成都
     */
    public static String CITY = "cd";

    /**
     * 城市,代码集合
     */
    public static List<City> cities = new ArrayList<>();

    /**
     * 定时器
     */
    public static Timer timer = null;

    /**
     * curl命令
     */
    public static ProcessBuilder CURL_CMD = new ProcessBuilder("curl", "-X", "GET", "-H", "Content-Type: application/json", "https://wxapidg.bendibao.com/smartprogram/zhuanti.php?platform=wx&version=21.12.06&action=jiujia&citycode=" + CITY);


    /**
     * pushDeer消息推送消息模板
     */
    public static String MSG_TEMPLATE =
            " **「 {yyHospital} 」**                                                           " +
                    " --------------------------------------------------- " +
                    " 「 预约时间 」：  **{yyTime}**  " +
                    " --------------------------------------------------- " +
                    " 「 地址」：  **{yyAddr}**  " +
                    " --------------------------------------------------- " +
                    " 「 数量」：  **{yyNumber}**  " +
                    " --------------------------------------------------- " +
                    " 「 方式」：  **{yyMethod}**  " +
                    " --------------------------------------------------- " +
                    " 「 途径」：  **{yyType}**  " +
                    " ------------------------------------------------------------------------------------------------------ ";

    /**
     * pushDeer消息推送URL
     */
    public static final String PUSH_DEER_URL = "https://api2.pushdeer.com/message/push?pushkey={key}&text={city}疫苗消息推送&desp={msg}&type=markdown";


    /**
     * pushDeer消息推送用户的key
     */
    public static String PUSH_DEER_KEY;

    /**
     * 用户是否输入过pushDeerKey
     */
    public static Boolean has_PUSH_DEER_KEY = false;
}
